package com.info.zhiduoduo.repository.entity.maker;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 创客账户流水(收入支出明细)
 * </p>
 *
 * @author bob
 * @since 2018-12-23
 */
@Data
@Accessors(chain = true)
@TableName("zdd_maker_accountflow")
public class MakerAccountflow extends Model<MakerAccountflow> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer userid;
    /**
     * 交易记录id
     */
    private Integer tradeid;
    /**
     * 企业id
     */
    private Integer compid;
    /**
     * 项目id
     */
    private Integer projectid;
    /**
     * 子项目项目id
     */
    private Integer projectItemId;
    /**
     * 1.收入 2支出
     */
    private Integer flowtype;
    /**
     * 流水金额
     */
    @TableField("flow_amount")
    private BigDecimal flowAmount;
    /**
     * 金额类型：0：项目款 1：服务费 2：税金
     */
    private Integer amounttype;
    /**
     * 流水名目
     */
    private String flowname;
    /**
     * 提现ID
     */
    private Integer wdid;
    /**
     * 项目类型
     */
    private Integer projectType;
    private Date createtime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
